package com.step.compute;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.LocalDateTimeUtil;

import java.time.ZoneOffset;

public class TimUtil {

    public static void main(String[] args) {
        //时间戳19位纳秒级别，字符串
        System.err.println(LocalDateTimeUtil.parse("2022-01-10 16:42:45", DatePattern.NORM_DATETIME_FORMATTER).toInstant(ZoneOffset.of("+8")).toEpochMilli()+"000000");
        System.err.println(LocalDateTimeUtil.parse("2022-01-12 18:42:45",DatePattern.NORM_DATETIME_FORMATTER).toInstant(ZoneOffset.of("+8")).toEpochMilli()+"000000");
    }
}
